package repo_gorm

import (
	"clean/domain"
	"github.com/jinzhu/gorm"
)

type HelloRepo struct {
	db *gorm.DB
}

func NewHelloRepo(db *gorm.DB) *HelloRepo {
	return &HelloRepo{
		db: db,
	}
}

type HelloDao struct {
	Name string `db:"name"`
	Msg  string `db:"msg"`
}

func (r *HelloRepo) GetByName(name string) (*domain.Hello, error) {
	return nil, nil
}

func (r *HelloRepo) Save(*domain.Hello) {

}
